import java.util.Scanner;

public class demo04 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int[] a=new int[5];
        int sum=0;
        for(int i=0;i<5;i++){
            System.out.println("请输入第" + (i + 1) + "个数:");
            a[i] = sc.nextInt();
            sum+=a[i];
        }
        System.out.println("合为："+sum);
    }
}
